﻿using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
namespace EMC.VISITOR.Plugin.GoView;

    /// <summary>
    /// 大屏Echarts配置输出参数
    /// </summary>
    public class GoViewProEchartsConfigDto
    {
        /// <summary>
        /// 关联项目Id
        /// </summary>
        public string GoViewProIdProjectName { get; set; }
        
        /// <summary>
        /// 关联项目Id
        /// </summary>
        public long? GoViewProId { get; set; }
        
        /// <summary>
        /// 大屏类型
        /// </summary>
        public BigScreenType? BigType { get; set; }
        
        /// <summary>
        /// Echart图表配置
        /// </summary>
        public string Config { get; set; }
        
        /// <summary>
        /// Id
        /// </summary>
        public long Id { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        
    }

    
  /// <summary>
    /// 大屏Echarts配置导出导入
    /// </summary>
    [ExcelExporter(Name = "大屏Echarts配置", TableStyle = OfficeOpenXml.Table.TableStyles.None, AutoFitAllColumn = true,AutoCenter =true)]
    [ExcelImporter( IsLabelingError = true,SheetName ="大屏Echarts配置")]
    public class ExportImportGoViewProEchartsConfigDto
    {
        /// <summary>
        /// 关联项目Id
        /// </summary>
        [ExporterHeader(DisplayName = "关联项目Id", IsBold = true)]
        [ImporterHeader(Name = "关联项目Id")]
        public long? GoViewProId { get; set; }
        
        /// <summary>
        /// 大屏类型
        /// </summary>
         [ExporterHeader(DisplayName = "大屏类型", IsBold = true)]
        [ImporterHeader(Name = "大屏类型")]
        public BigScreenType? BigType { get; set; }
        
        /// <summary>
        /// Echart图表配置
        /// </summary>
        [ExporterHeader(DisplayName = "Echart图表配置", IsBold = true)]
        [ImporterHeader(Name = "Echart图表配置")]
         [Required(ErrorMessage ="Echart图表配置为必填字段！")]
        public string? Config { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        [ExporterHeader(DisplayName = "更新时间", IsBold = true)]
        [ImporterHeader(Name = "更新时间")]
        public DateTime? UpdateTime { get; set; }
        
    }